package com.qst.pojo.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

/**
 * 仪表板统计数据VO
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DashboardStatsVO {

    // 统计卡片数据
    private StatsCard statsCard;

    // 最新订单
    private List<RecentOrder> recentOrders;

    // 站点状态
    private List<StationStatus> stationStatus;

    /**
     * 统计卡片
     */
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class StatsCard {
        private Long totalUsers;        // 总用户数
        private Integer totalStations;  // 回收站点数
        private Long totalOrders;       // 总订单数
        private BigDecimal totalRevenue; // 总收入
    }

    /**
     * 最新订单
     */
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class RecentOrder {
        private Integer id;
        private String orderNo;
        private String customerName;
        private BigDecimal totalAmount;
        private String status;
        private String createTime;
    }

    /**
     * 站点状态
     */
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class StationStatus {
        private Integer id;
        private String name;
        private Integer currentLoad;
        private Integer capacity;
        private String status;
    }
}


